package cn.qingyun.gis.modules.express.controller;


import cn.qingyun.gis.common.Result;
import cn.qingyun.gis.modules.express.service.IExpressProofreadHandleService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 快递勘误(处理) 前端控制器
 * </p>
 *
 * @author miyunguo
 * @since 2023-08-30
 */
@RestController
@Api(value = "快递勘误数据处理控制",tags = {"快递勘误数据处理控制"})
@RequestMapping("/app/express-proofread-handle")
public class ExpressProofreadHandleController {
    @Resource
    private IExpressProofreadHandleService iExpressProofreadHandleService;

    @ApiOperation(value = "数据处理快递勘误数据（进行快递勘误网格匹配）")
    @GetMapping("/handleExpressProofred")
    public Result<?> handleExpressProofred(){
        iExpressProofreadHandleService.handleExpressProofred();
        return Result.okData("正在处理快递勘误数据, 请稍后");
    }

    @ApiOperation(value = "数据处理快递勘误数据（进行快递新匹配空网格补全）")
    @GetMapping("/handleBlankExpressProofred")
    public Result<?> handleBlankExpressProofred(){
        iExpressProofreadHandleService.handleBlankExpressProofred();
        return Result.okData("二次处理快递勘误数据, 请稍后");
    }

}
